package com.zsx.shopping.common.api.cart.feign;

import com.zsx.shopping.common.api.R;
import com.zsx.shopping.common.api.cart.vo.CartVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;

@FeignClient("shopping-cart")
public interface CartFeignService {

    @GetMapping("/cart/cart")
    R<CartVO> getCart();

    @PutMapping("/cart/cart")
    R<Void> updateCart();

    @DeleteMapping("/cart/cart")
    R<Void> clearCart();
}
